package com.unlcn.erp.hyc.interfaces.backend.service;

import com.unlcn.erp.hyc.interfaces.base.model.Smcitymap;

/**
 * Created by zhiche024 on 2017/9/8.
 */
public interface CheckIntermediateService {
    /**
     *  判断城市是否存在
     * @param cityCode 城市编码
     * @param cityName  城市名称
     * @return
     */
    Smcitymap judgeCityMap(String cityCode, String cityName,String orderCode) throws Exception;

    /**
     * 判断客户中间表是否存在
     * @param customerId
     * @param customerName
     * @return
     */
    Long judgeCustomerpMap(long customerId,String customerName,Long startCityId, Long custId) throws Exception;

    /**
     * 判断车型是否存在
     * @param vehicleid
     * @param vehiclename
     * @return
     */
    Long judgeModersMap(long vehicleid,String vehiclename,Long contractId) throws Exception;

    /**
     * 检查分供方是否存在
     * @param carrierId
     * @param carrierName
     * @return
     */
    Long judgeShipMap(String carrierId,String carrierName ) throws Exception;

    /**
     * 检查司机是否存在
     * @param driverName
     * @return
     */
    Long judgeDriverMap(String driverName) throws Exception;

    /**
     * 检查车辆是否存在
     * @param vehicleName
     * @return
     */
    Long judgeVehicleMap(String vehicleName,Long shipId,Long driverId) throws Exception;

    /**
     * 判断提车库是否存在
     * @param customerId
     * @param pointName
     * @param province
     * @return
     */
    Long judgeGetPointIsExist (Long customerId,String pointName,String province) throws Exception;

    /**
     * 判断客户合同是否存在
     * @param smcustomerId
     * @return
     * @throws Exception
     */
    Long judgeSmContract(Long smcustomerId ) throws Exception;

    /**
     * 判断客户体系是否存在
     * @param customername
     * @return
     * @throws Exception
     */
    Long judgeCust(String customername) throws Exception;

    Long judgeSmWarehouse(Long customerId,Long contractId,Smcitymap startCity) throws Exception;

    String switchCityName(String noCityName) throws Exception;
}
